package com.xyz.service;

import com.free.ext.mybatis.model.entity.PageResponseModel;
import com.xyz.dao.logic.SAnnouncementLogic;
import com.xyz.domain.table.SAnnouncement;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class AnnounceInfoService extends BaseService {

    @Autowired
    SAnnouncementLogic announcementLogic;

    public PageResponseModel<SAnnouncement> messageList(int pageNo, int pageSize) {
        SAnnouncement condition = new SAnnouncement();
        condition.setCustId(getCurrentUser().getId());
        return announcementLogic.selectByPageNo(condition, StringUtils.EMPTY, pageNo, pageSize);
    }


}
